import type { RouteRecordRaw } from 'vue-router'

/**
 * 路由配置
 * @description 所有路由都在这里集中管理
 */
const routes: RouteRecordRaw[] = [
  /**
   * 首页
   */
  {
    path: '/',
    name: 'home',
    component: () => import('@/views/home.vue'),
    meta: {
      title: 'Home',
    },
    children: [
      {
        path: '/scheduleSettings',
        name: 'scheduleSettings',
        component: () => import('@/views/scheduleSettings/index.vue'),
        meta: {
          title: 'scheduleSettings',
        },
      },
      {
        path: '/summaryReport',
        name: 'summaryReport',
        component: () => import('@/views/summaryReport/index.vue'),
        meta: {
          title: 'summaryReport',
        },
      },
      {
        path: '/expenses',
        name: 'expenses',
        component: () => import('@/views/expenses/index.vue'),
        meta: {
          title: 'expenses',
        },
      },
      {
        path: '/jiaiCalendar',
        name: 'jiaiCalendar',
        component: () => import('@/views/jiaiCalendar/index.vue'),
        meta: {
          title: 'jiaiCalendar',
        },
      },
      {
        path: '/AINode',
        name: 'AINode',
        component: () => import('@/views/AINode/index.vue'),
        meta: {
          title: 'AINode',
        },
      },
    ],
  },
]

export default routes
